<?php
    $this->headTitle($this->site_name.' - Signup');
?>
<script type="text/javascript" src="/js/jquery.validate.js"></script>
<script type="text/javascript">   
	$.validator.addMethod('samePassword', 
	    function (value) {
	    	var pass1=$("#password").val();
	    	if (value==pass1)
		    	return true;
	    	else  
	        	return false; 
	    }, 'Password should be the same'); 


	$(document).ready(function(){
	    $("#signup").validate({
	      rules: {
        	email: {
	          required: true,
	          email: true
	        },
        	password: {
		      required: true
		    },
        	password2: {
		      required: true,
		      samePassword: true
			}
	      },
	      messages: {
	    	email: {
	          required: "Email can not be empty",
	          email: "Email must be valid"
	        },
	        password: {
	          required: "Password can not be empty"
	        },
	        password2: {
		      required: "Password can not be empty"
		    }
	      }
	    });
	});
</script>  

<?php if (!empty($this->error_msg)):?>
<div class="response-msg error ui-corner-all"><?php echo $this->error_msg;?></div>
<?php endif ?>

<div id="dashboard">

<h2>Service Sign Up</h2>
 


<div align=center style="font-size:13px;margin:20px 0;">
<div style="text-align:left;">The YesUp central account will grant you access to all of your YesUp Accounts through one 
unique ID and password. For your signup, enter any email address or even your Google account ID to centralize your YesUp accounts.</div>


<div style="width:300px;margin:40px 20px;">

        <div style="text-align:left">

            <h3>Create a YesUp center account</h3>

            <?php echo $this->form; ?>

        </div>
</div>


</div>

</div>
